home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000133_news@columbia.edu _Tue Mar 21 13:03:51 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA04344
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 21 Mar 2000 13:03:51 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA09944
for kermit.misc@watsun.cc.columbia.edu; Tue, 21 Mar 2000 12:42:12 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Automating Screen Activity Log
Date: 21 Mar 2000 17:42:09 GMT
Organization: Columbia University
Message-ID: <8b8c9h$9ml$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <38D7A0B2.5CFB3837@usa.alcatel.com>,
Mike Cooley <Michael.Cooley@usa.alcatel.com> wrote:
: Can someone tell me how? We're using the File: Open Logfile from the
: scoterm window, but we would like to automate it so we can stop and
: start new files daily. Any suggestions?
:
: What about sending the "altF" keystroke in a script? As you can see I'm
: at a complete loss.
:
: We have a modem connection that is constantly dumping data to the screen
: and to a file. We would like to change the file name daily without
: closing and reopening the connection. The File:Open Logfile works fine,
: but we have remember to do it. It would be a lot easier if it could be
: automated.
:
SCOterm is like Xterm, right?
In that case, you could use C-Kermit as the communication software in the
SCOterm window:
http://www.columbia.edu/kermit/ckermit.html
Lots of sample scripts can be found here:
http://www.columbia.edu/kermit/ckscripts.html
The trick for changing logs every 24 hours would be something like this:
while true {
log session \v(ndate)_\v(ntime)_\v(pid).log ; make unique filename
input 86400 SOME_STRING_THAT_WILL_NEVER_COME ; log for 24 hours
close session-log ; close log
}
Alternatively, to force the turnover to happen at midnight, you could use:
while true {
log session \v(ndate)_\v(ntime)_\v(pid).log ; make unique filename
input 23:59:59 SOME_STRING_THAT_WILL_NEVER_COME ; log until 23:59:59
close session-log ; close log
pause 2 ; wait till 00:00:01
}
Don't worry, nothing will be lost during the 2-second pause (assuming the
connection is flow-controlled, etc).
- Frank